package sctu.edu.java.year2016.team04.luoxinghua.day20160520.chapter4_1;

/**输入一个数判断他的奇偶性
 * Created by 落叶的思恋 on 2016/5/20.
 */
import java.util.Scanner;
public class odd_even {
    public static void main(String[] args) {
        Scanner scanf=new Scanner(System.in);
        System.out.println("输入x");
        int x=scanf.nextInt();
        if (x%2==0)
            System.out.println("x是偶数");
        else
            System.out.println("x是奇数");

    }
}

